package com.zyh.thread.mythread;

/**
 * @Author zyh
 * @Date 2024/8/7 11:23
 * @Description
 */

public class MyThread01 extends Thread{
    public MyThread01() {
    }

    public MyThread01(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"正在打印"+i);
        }
    }
}
